#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <mhash.h>
#include <getopt.h>
#include <time.h>

#ifndef __ADDUSER_H_
#define __ADDUSER_H_

#define PASSWDFILE 	"passwdf"
#define SHADOWFILE	"shadowf"

struct users {

        char *user;
        char *home;
        char *group;
        char *name;
        char *comment;
        char *shell;
        char *matriculation;
        char *grade;
        int group_id;
        int user_id;
        int date_created;
        int last_login;
        int blocked;
};

void print_help();
int last_user_id(CONNECTION_DB conn);
void gen_pass(char *pass);
char * encrypt_password(const char *);
int addpasswd(char *, int , int , char *, char *, char *);
int addshadow(char *);

#endif
